/*
 * Copyright (c) 2007 Compl Yue Still, All Rights Reserved.
 */

package hbi.domain.as3
{
	import flash.utils.*;
	
	import hbi.wire.as3.guest.GuestEnd;

	internal dynamic class LocalAgentStub extends Proxy
	{
		private var guestEnd:GuestEnd;
		public function LocalAgentStub(guestEnd:GuestEnd)
		{
			this.guestEnd = guestEnd;
		}
		
		flash_proxy override function callProperty(methodName:*, ...args):*
		{
			guestEnd.scriptAgent(methodName, args);
			return undefined;
		}
	}
}
